package com.liumo.domain;

import com.liumo.domain.intface.BinaryOperation;

import java.util.Random;

public class SubtractionOperation extends BinaryOperation {
    public SubtractionOperation(){
        this.aChar = " - ";
    }
    @Override
    protected void count() {
        result = this.one - this.two;
        if (result <= 0) {
            this.two -= 2;
            count(); // 递归调整结果范围
        }
    }
}
